package com.cea.papyrus.diagram.activity.helper;

import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.uml2.uml.UMLPackage;

import com.cea.papyrus.diagraminterchange2.di2.GraphElement;

public class NodeInitialNodeHelper extends NodeActivityNodeHelper{
	/* (non-Javadoc)
	 * @see com.cea.papyrus.core.common.helper.NodeHelper#getBaseString()
	 */
	@Override
	public String getBaseString() {
		return "InitialNode_"; //$NON-NLS-1$
	}
	
	protected EClass getNodeType() {
		return UMLPackage.eINSTANCE.getInitialNode();
	}
	
	/* (non-Javadoc)
	 * @see com.cea.papyrus.core.common.factories.IGraphElementFactory#setGraphElementPreferences(com.cea.papyrus.core.diagraminterchange2.di2.GraphElement)
	 */
	@Override
	public void setGraphElementPreferences(GraphElement graphElement) {
		graphElement.setBackgroundColor(new RGB(157,124,47));//brown
		graphElement.setBorderColor(new RGB(157,124,47));//brown
		graphElement.setFontColor(new RGB(0,0,0));//black
		graphElement.setFontFamily("Arial");
		graphElement.setFontSize(10);
	}
	
	/* (non-Javadoc)
	 * @see com.cea.papyrus.core.common.helper.NodeHelper#getGraphNodeSize()
	 */
	@Override
	public Dimension getGraphNodeSize() {
		return new Dimension(20,20);
	}
	
}
